package com.itbbj.principle.d4_DIP.demo2;

import com.itbbj.principle.d4_DIP.demo2.cpu.Cpu;
import com.itbbj.principle.d4_DIP.demo2.memory.Memory;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: jack_yang
 * @Date: 2024/5/6
 * @Description: addition and subtraction
 */
public class Computer {
    private Cpu Cpu;
    private Memory Memory;
    public Computer(){

    }
    public Computer(Cpu cpu, Memory memory)
    {
        this.Cpu = cpu;
        this.Memory = memory;
    }
    public void startRun(){
        Cpu.cacluate();
        Memory.storage();
    }
}
